import { service as request } from '../../utils/requestBaby';


export function useAgvApi() {
	return {
		getAgvStatus: (data?: TAgvInfoParam) => {
			return request({
				url: '/status',
				method: 'post',
				data,
			});
		},

		// agv all1 info 
		getAgvAll1Info: (data?: TAgvInfoParam) => {
			return request({
				url: '/info/all1',
				method: 'post',
				data,
			});
		},
		getAgvMap: (data?: TAgvInfoMapParam) => {
			return request({
				url: '/info/map',
				method: 'post',
				data,
			});
		},
		getAgv1AllInfo: (params?: object) => {
			return request({
				url: '/agv/agv1',
				method: 'get',
				params,
			});
		},
		getAgv2AllInfo: (params?: object) => {
			return request({
				url: '/agv/agv2',
				method: 'get',
				params,
			});
		},
		getAgv3AllInfo: (params?: object) => {
			return request({
				url: '/agv/agv3',
				method: 'get',
				params,
			});
		},
		runControl: (data: TAgvParam) => {
			return request({
				url: '/agv/control',
				method: 'post',
				data,
			});
		},

		runNav: (data: TAgvParam) => {
			return request({
				url: '/agv/nav',
				method: 'post',
				data,
			});
		},

		runConfig: (data: TAgvParam) => {
			return request({
				url: '/agv/config',
				method: 'post',
				data,
			});
		},

		runOhter: (data: TAgvParam) => {
			return request({
				url: '/agv/other',
				method: 'post',
				data,
			});
		},

	};
}



